<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>收款单详情</title>
    <#include "/common/resource.ftl">
    <script type="text/javascript">
        $(function () {
            <#if (params.id)??>
                $.ajaxRequest({
                    url: '${params.contextPath}/web/receipt/query.json',
                    data: {id: "${params.id}"},
                    success: function (data) {
                        if (!data.success) {
                            $.message(data.message);
                            return;
                        }
                        var record = data.data;
                        for (var key in record) {
                            $("[field='" + key + "']").html(record[key]);
                        }
                    }
                });
            </#if>
        });
    </script>
</head>
<body>
<div class="ui-table-div">
    <table class="layui-table ui-table">
        <tr>
            <th>老人</th>
            <td field="elderName">--</td>
        </tr>
        <tr>
            <th>开始日期</th>
            <td field="beginDateStr">--</td>
        </tr>
        <tr>
            <th>结束日期</th>
            <td field="beginDateStr">--</td>
        </tr>
        <tr>
            <th>床位费</th>
            <td field="bedAmount">--</td>
        </tr>
        <tr>
            <th>护理费</th>
            <td field="nurseAmount">--</td>
        </tr>
        <tr>
            <th>生活费</th>
            <td field="liveAmount">--</td>
        </tr>
        <tr>
            <th>其他费用</th>
            <td field="otherAmount">--</td>
        </tr>
        <tr>
            <th>总费用</th>
            <td field="totalAmount">--</td>
        </tr>
        <tr>
            <th>付款方式</th>
            <td field="payTypeStr">--</td>
        </tr>
        <tr>
            <th>入账状态</th>
            <td field="statusStr">--</td>
        </tr>
        <tr>
            <th>备注</th>
            <td field="remark">--</td>
        </tr>
    </table>
</div>
</body>

</html>
